<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>淘宝服务</title>
  <style>
    /* 基础样式设置 */
    * {
      margin: 0;
      padding: 0;
    }

    li {
      list-style: none;
    }

    a {
      text-decoration: none;
      color: #333;
    }

    a:hover {
      color: #f40;
    }

    /* 淘宝服务 */
    .box {
      margin: 100px auto;
      width: 288px;
      height: 152px;
      background-color: #fff;
    }

    .box li {
      float: left;
      width: 71px;
      height: 75px;
      margin-left: -1px;
      margin-top: -1px;
      border: 1px solid #f4f4f4;
      /* background-color: pink; */
    }

    .box li a {
      display: block;
      margin-top: 11px;
      text-align: center;
    }

    .box li span {
      display: inline-block;
      width: 24px;
      height: 24px;
      /* margin: 0 auto; */
      background: url(./icons.png) no-repeat center;
    }

    .box li p {
      margin-top: 10px;
      font-size: 12px;
    }

    .box .s1 {
      background-position: 0 0;
    }

    .box .s2 {
      background-position: 0 -88px;
    }

    .box .s3 {
      background-position: 0 -44px;
    }

    .box .s4 {
      background-position: 0 -132px;
    }

    .box .s5 {
      background-position: 0 -176px;
    }

    .box .s6 {
      background-position: 0 -220px;
    }

    .box .s7 {
      background-position: 0 -264px;
    }

    .box .s8 {
      background-position: 0 -308px;
    }
  </style>
</head>

<body>
  <ul class="box">
    <li>
      <a href="#">
        <span class="s1"></span>
        <p>充话费</p>
      </a>
    </li>
    <li>
      <a href="#">
        <span class="s2"></span>
        <p>旅行</p>
      </a>
    </li>
    <li>
      <a href="#">
        <span class="s3"></span>
        <p>车险</p>
      </a>
    </li>
    <li>
      <a href="#">
        <span class="s4"></span>
        <p>游戏</p>
      </a>
    </li>
    <li>
      <a href="#">
        <span class="s5"></span>
        <p>彩票</p>
      </a>
    </li>
    <li>
      <a href="#">
        <span class="s6"></span>
        <p>电影</p>
      </a>
    </li>
    <li>
      <a href="#">
        <span class="s7"></span>
        <p>酒店</p>
      </a>
    </li>
    <li>
      <a href="#">
        <span class="s8"></span>
        <p>理财</p>
      </a>
    </li>
  </ul>
</body>

</html>